<template>
  <div class="box1" ref="dom"></div>
</template>

<script>
import echarts from "echarts";
export default {
  mounted() {
    let myEcharts = echarts.init(this.$refs.dom);
    myEcharts.setOption({
      xAxis: {
        show: false,
        type: "category",
      },
      yAxis: {
        show: false,
      },
      series: [
        {
          type: "bar",
          data: [10, 20, 30, 25, 50, 43, 32, 45, 67, 78, 89, 23],
          color: "blue",
        },
      ],
      grid: {
        left: 0,
        top: 0,
        bottom: 0,
        right: 0,
      },
    });
  },
};
</script>

<style scoped>
.box1 {
  width: 100%;
  height: 100%;
}
</style>